package com.atguigu.spzx.product.service;

import com.atguigu.spzx.model.pojo.product.Category;
import com.atguigu.spzx.model.vo.common.Result;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

public interface CategoryService extends IService<Category> {
    List<Category> getFirstCategory();

    List<Category> findCategoryTree();

    @Cacheable(value = "category",key = "'key'")
    List<Category> findAllCategory();
}
